import request from "../service/request";
import { ElMessage } from 'element-plus'
import axios from '@/utils/axios'
import moment from "moment";

export const getAssessor = async (type) => {
    const data = await request.get(`/assessor/ceo/${type}`);
    return data.data
}

export function getEmpList(params) {
  return axios({
    url: '/auth/employee/all',
    method: 'get',
    data: params
  })
}

export const getSubordinate = async (ceoId) => {
  const data = await request.get(`/auth/employee/all/${ceoId}`);
  return data.data
}